package com.kevinwu.springboot.service.impl;

import com.kevinwu.springboot.pojo.Article;
import com.kevinwu.springboot.repository.ArticleRepository;
import com.kevinwu.springboot.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * 文章Service实现类
 */
@Service
public class ArticleServiceImpl implements IArticleService {

    @Autowired
    ArticleRepository articleRepository;
    @Override
    public Page<Article> findAllArticle(Pageable pageable) {
        return articleRepository.findAll(pageable);
    }
}
